<template>
	<view>
		<web-view :src="url"></web-view>
	</view>
</template>

<script setup>
import { ref } from 'vue';
import { onLoad } from '@dcloudio/uni-app';

const url = ref('');
const schoolInfo = ref({});
onLoad((options) => {
	const schoolStr = uni.getStorageSync('schoolInfo');
	if (!schoolStr) {
	} else {
		const school = JSON.parse(schoolStr);
		schoolInfo.value = school;
		uni.setNavigationBarTitle({
			title: school.schoolName + '校话'
		});
	}
	if (options.url) {
		url.value = decodeURIComponent(options.url);
	}
});
</script>
